#pragma once


// DlgFutureAutoTrade dialog
#include "xDlgAccount.h"
#include "xDlgFutureParameter.h"
#include "baseform.h"


class DlgFutureAutoTrade :	public CBaseForm

{
private:
	CxDlgAccount m_dlgAccount;
	CxDlgFutureParameter m_dlgFutureParameter;

	DECLARE_DYNAMIC(DlgFutureAutoTrade)
HANDLE m_hthread;
public:
	DlgFutureAutoTrade(CWnd* pParent = NULL);   // standard constructor
	virtual ~DlgFutureAutoTrade();
static void* CreateShow(CWnd* pParent);
// Dialog Data
	enum { IDD = IDD_DLG_FUTURE_AUTOTRADE };

public:
	virtual BOOL OnInitDialog();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	afx_msg LRESULT OnRMTRecv(WPARAM,LPARAM);

	BOOL ParseTradeServerStatus( LPARAM lParam );

	DECLARE_MESSAGE_MAP()
	void InitAccount();
public:
	afx_msg void OnBnClickedBtnSatDetail();
	void InitFutureParameter();
	afx_msg void OnTimer(UINT_PTR nIDEvent);

	void GetServerConnectStatus();

	void GetServerMarketStatus();
	virtual CString GetTitle() const;

	virtual BOOL AllowClose();

};
